package com.ztgf.order.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LZM
 * @create 2021-09-14 10:10
 */
@Data
public class OrderPaymentScaleVO implements Serializable {
    @ApiModelProperty(value = "主键")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("原订单id")
    private Long orderId;

    @ApiModelProperty(value = "赊销id")
    private Long paymentId;

    @ApiModelProperty(value = "备注/支付条件")
    private String remark;

    @ApiModelProperty(value = "付款时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    @ApiModelProperty(value = "支付比例")
    private BigDecimal paymentScale;

    @ApiModelProperty(value = "付款金额")
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "总金额")
    private BigDecimal paymentTotal;

    @ApiModelProperty(value = "支付状态")
    private Integer paymentStatus;

    @ApiModelProperty(value = "支付时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentSuccessTime;

    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "支付方式(0余额、1网银、2票据)")
    private Integer paymentType;


    @ApiModelProperty(value = "票据名称")
    private String billName;

    @ApiModelProperty(value = "票据图片路径")
    private String billUrl;

}